package com.jfinal.weixin.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.weixin.demo.Constants;

/**
 * Created by liuyang on 15/4/2.
 */
public class CommonInterceptor implements Interceptor {
	
    public void intercept(Invocation ai) {
        
        ai.getController().getRequest().setAttribute("basePath", Constants.getBaseUrl());
        
        ai.invoke();
    }
}
